﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.Generic;

namespace ALiteTeam.PackageTracer.Core
{
    public class Configuration
    {
        public Configuration()
        {
            this.UpdateOrder = new List<Guid>();
            this.BackgroundImage = "/Images/Background/13.jpg";
        }

        /// <summary>
        /// 业务系统消耗的流量(字节)
        /// </summary>
        public double NetTraffic { get; set; }

        /// <summary>
        /// 系统消耗的流量(字节)
        /// </summary>
        public double NetTrafficBySystem { get; set; }

        /// <summary>
        /// 是否允许后台更新
        /// </summary>
        public bool AllowUpdateViaBackground { get; set; }

        /// <summary>
        /// 是否允许Toast方式提示
        /// </summary>
        public bool AllowToast { get; set; }

        /// <summary>
        /// 主题颜色
        /// </summary>
        public ThemeColors ThemeColor { get; set; }

        /// <summary>
        /// 背景图名
        /// </summary>
        public string BackgroundImage { get; set; }

        /// <summary>
        /// 当前版本号（以时间戳为准）
        /// </summary>
        public DateTime? CurrentInstanceVersion { get; set; }

        /// <summary>
        /// 后台自动更新后发生变化的运单ID队列
        /// </summary>
        public List<Guid> UpdateOrder { get; set; }
    }
}
